//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "formkeywordunit.h"
#include "mainformunit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFormKeyword *FormKeyword;
//---------------------------------------------------------------------------
__fastcall TFormKeyword::TFormKeyword(TComponent* Owner)
    : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFormKeyword::Btn1Click(TObject *Sender)
{
    FormMain->LsbKeyWord->Clear();
    for(int i=0;i<this->MemoKeyWords->Lines->Count&&i<FormMain->CbbQuesNum->ItemIndex+1;i++)
    {
        AnsiString s=this->MemoKeyWords->Lines->Strings[i].Trim();
        if(s!="")
            FormMain->LsbKeyWord->Items->Add(s);
    }
    this->Close();
}
//---------------------------------------------------------------------------
void __fastcall TFormKeyword::Btn2Click(TObject *Sender)
{
    this->MemoKeyWords->Clear();
    for(int i=0;i<FormMain->LsbKeyWord->Count;i++)
    {
        AnsiString s=FormMain->LsbKeyWord->Items->Strings[i];
        this->MemoKeyWords->Lines->Add(s);
    }
}
//---------------------------------------------------------------------------
